<template>
  <ErrorOrderPage :showSearchConfig="false" :paramsObj="{ compareRuleId, errorType ,orgAreaId,...params}"></ErrorOrderPage>
</template>

<script setup lang="tsx">
import ErrorOrderPage from '@/views/homeCare/compareAppeals/errorOrder/index.vue'

const props = defineProps<{
	compareRuleId?: any
	params?: any
	errorType?: string | number
	orgAreaId?: string | number
}>()

const tableConfig = {
	stripe: true,
	border: true,
	columns: [
		{ label: '服务组织单位', prop: 'organizationName' },
		{ label: '工单编号/名称', prop: 'orderNo' },
		{ label: '服务对象姓名', prop: 'elderlyName' },
		{ label: '服务对象身份证号', prop: 'elderlyIdCard' },
		{ label: '服务人员', prop: 'staffName' },
		{ label: '工单开始时间', prop: 'orderStartTime' },
		{ label: '工单结束时间', prop: 'orderEndTime' },
		{
			label: '异常原因',
			prop: 'errorInfo',
			render: ({ row }) => {
				return <span class="text-red">{row.errorInfo}</span>
			},
		},
	],
}

const api = {
	index: 'view_omCompareData_appealPage',
}
const auth = {
	...api,
}
const baseConfig = {
	pageName: '异常工单',
	dictcodes: [],
	rowKey: 'id',
	addLabel: '新增',
	tipLabel: 'roleName',
	exportMqTopic: '/ning/export/',
	api,
	auth,
	menuBtn: [],
	dialogConfig: {
		width: '75%',
	},
	tableConfig,
}
</script>

<style lang="scss" scoped></style>
